<ion-header>
    <ion-navbar core-back-button>
        <ion-title>{{ title }}</ion-title>
    </ion-navbar>
</ion-header>
<ion-content>
    <ion-refresher [enabled]="loaded" (ionRefresh)="refreshData($event)">
        <ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
    </ion-refresher>
    <core-loading [hideUntil]="loaded">
        <core-empty-box *ngIf="!sections || !sections.length" icon="qr-scanner" [message]="'core.course.nocontentavailable' | translate"></core-empty-box>

        <ion-list>
            <ng-container text-wrap *ngFor="let section of sections" >
                <ng-container *ngFor="let module of section.modules">
                    <core-course-module *ngIf="module.visibleoncoursepage !== 0" [module]="module" [section]="section" [courseId]="courseId" [downloadEnabled]="downloadEnabled"></core-course-module>
                </ng-container>
            </ng-container>
        </ion-list>
    </core-loading>
</ion-content>
